﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="TopFrame.aspx.cs" Inherits="PowerToolsWeb.Admin.TopFrame" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <style type="text/css">
        body
        {
            margin-left: 0px;
            margin-top: 0px;
            margin-right: 0px;
            margin-bottom: 0px;
        }
        .STYLE1
        {
            font-size: 12px;
            color: #000000;
        }
        .STYLE5
        {
            font-size: 12;
        }
        .STYLE7
        {
            font-size: 12px;
            color: #FFFFFF;
        }
        .STYLE7 a
        {
            font-size: 12px;
            color: #FFFFFF;
        }
        a img
        {
            border-style: none;
            border-color: inherit;
            border-width: medium;
            height: 17px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
        <tr>
            <td height="57" background="../Style/admin/main_03.gif">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="378" height="57" background="../Style/admin/main_02.gif">
                            &nbsp;
                        </td>
                        <td>
                            &nbsp;
                        </td>
                        <td width="281" valign="bottom">
                            <table width="100%" style="height: 27px;" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="33" height="27" background="../Style/admin/main_05.gif">
                                        <%--<img src="" width="33" height="27" />--%>
                                    </td>
                                    <td width="248" height="27px" background="../Style/admin/main_06.gif" style="padding: 0px">
                                        <table width="225" border="0" align="center" cellpadding="0" cellspacing="0">
                                            <tr>
                                                <%--<td height="17"><div align="right"><a href="pwd.php" target="rightFrame"><img src="../Style/admin/pass.gif" width="69" height="17" /></a></div></td>
                <td><div align="right"><a href="user.php" target="rightFrame"><img src="../Style/admin/user.gif" width="69" height="17" /></a></div></td>--%>
                                                <td height="17" align="left">
                                                    <span id="spTime" class="STYLE1">当前时间：</span>
                                                </td>
                                                <td height="17">
                                                    <div align="right"><a href="javascript:window.parent.logout();">
                                                            <img src="../Style/admin/quit.gif" alt="退出系统" width="69" /></a></div>
                                                </td>
                                            </tr>
                                        </table>
                                    </td>
                                </tr>
                            </table>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td height="40" background="../Style/admin/main_10.gif">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="194" height="40" background="../Style/admin/main_07.gif">
                            &nbsp;
                        </td>
                        <td>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="21" class="STYLE7">
                                        <img src="../Style/admin/main_15.gif" width="19" height="14" />
                                    </td>
                                    <td width="35" class="STYLE7">
                                        <div align="center">
                                            <a href="javascript:history.go(-1);">后退</a></div>
                                    </td>
                                    <td width="21" class="STYLE7">
                                        <img src="../Style/admin/main_17.gif" width="19" height="14" />
                                    </td>
                                    <td width="35" class="STYLE7">
                                        <div align="center">
                                            <a href="javascript:history.go(1);">前进</a></div>
                                    </td>
                                    <td width="21" class="STYLE7">
                                        <img src="../Style/admin/main_19.gif" width="19" height="14" />
                                    </td>
                                    <td width="35" class="STYLE7">
                                        <div align="center">
                                            <a href="javascript:parent.frames('mainFrame').frames('rightFrame').location.reload();">刷新</a></div>
                                    </td>
                                    <%--<td width="21" class="STYLE7"><img src="../Style/admin/main_21.gif" width="19" height="14" /></td>
            <td width="35" class="STYLE7"><div align="center"><a href="http://www.865171.cn" target="_parent">帮助</a></div></td>--%>
                                    <td>
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <%--<td width="248"> background="../Style/admin/main_11.gif">
                        <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="16%">
                                        <span class="STYLE5"></span>
                                    </td>
                                    <td width="75%">
                                        <div align="center">
                                            <span class="STYLE7"></span>
                                        </div>
                                    </td>
                                    <td width="9%">
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </td>--%>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td height="30" background="../Style/admin/main_31.gif">
                <table width="100%" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                        <td width="8" height="30">
                            <img src="../Style/admin/main_28.gif" width="8" height="30" />
                        </td>
                        <td width="147" background="../Style/admin/main_29.gif">
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td width="24%">
                                        &nbsp;
                                    </td>
                                    <td width="43%" height="20" valign="bottom" class="STYLE1">
                                        管理菜单
                                    </td>
                                    <td width="33%">
                                        &nbsp;
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td width="39">
                            <img src="../Style/admin/main_30.gif" width="39" height="30" />
                        </td>
                        <td>
                            <table width="100%" border="0" cellspacing="0" cellpadding="0">
                                <tr>
                                    <td height="20" valign="bottom">
                                        <span class="STYLE1">当前登录用户：<%=UserInfo.UserName %>
                                            &nbsp;<%--用户角色：管理员--%></span>
                                    </td>
                                    <td valign="bottom" class="STYLE1">
                                        <div align="right">
                                        </div>
                                    </td>
                                </tr>
                            </table>
                        </td>
                        <td width="17">
                            <img src="../Style/admin/main_32.gif" width="17" height="30" />
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
    </table>
    </form>
</body>

<script language="javascript" type="text/javascript">
    showtime();
    function showtime()
    {
         var today,hour,second,minute,year,month,date;
         var strDate;
         today=new Date();
         var n_day = today.getDay();
         switch (n_day)
         {
             case 0:{
             strDate = "星期日"
             }break;
             case 1:{
             strDate = "星期一"
             }break;
             case 2:{
             strDate ="星期二"
             }break;
             case 3:{
             strDate =  "星期三"
             }break;
             case 4:{
             strDate =  "星期四"
             }break;
             case 5:{
             strDate =  "星期五"
             }break;
             case 6:{
             strDate =  "星期六"
             }break;
             case 7:{
             strDate =  "星期日"
             }break;
         }
        year = today.getYear();
        month = today.getMonth()+1;
        date = today.getDate();
        hour = today.getHours();
        minute =today.getMinutes();
        second = today.getSeconds();
        document.getElementById("spTime").innerHTML =year + "-" + month + "-" + date + " " +  strDate + " " + hour + ":" + minute + ":" + second; //显示时间
        setTimeout("showtime();", 1000); //设定函数自动执行时间为 1000 ms(1 s)
    }
</script>

</html>
